
import 'dart:typed_data';

///返回的扫描结果对象
class ScanResults{
  ///设备Id
  late final String _id;

  ///设备名称
  late final String? _name;

  ///设备localName
  late final String? _localName;

  ///mac地址,ios没有返回
  late final String? _macAddress;

  ///蓝牙信号强度
  late final int _rssi;

  ///设备uuid
  late final List _uuids;

  ///厂商自定义数据
  late final Map? _manufacturerSpecificData;

  ///原始广播包数据
  late final Uint8List? _row;

  ScanResults(this._id, this._name, this._localName, this._macAddress,
      this._rssi, this._uuids, this._manufacturerSpecificData, this._row);

  Uint8List? get row => _row;

  String? get localName => _localName;

  Map? get manufacturerSpecificData => _manufacturerSpecificData;

  List get uuids => _uuids;

  int get rssi => _rssi;

  String? get macAddress => _macAddress;

  String? get name => _name;

  String get id => _id;
}